package com.wu.ssm.study.ioc;

import com.wu.ssm.spring.annotion.MyBean;
import com.wu.ssm.spring.annotion.MyQualifier;

/**
 * Created by wzf on 2018/11/7/007.
 */

@MyBean("user")
public class User {

    private String username;

    @MyQualifier("dept")
    private Dept dept;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", dept=" + dept +
                '}';
    }
}
